<?php
if ( !function_exists( 'format_status' ) )
{
    /**
     * 返回状态标签
     *
     * @param $value
     *
     * @return mixed
     */
    function format_status( $value )
    {
        $status = [
            'normal' => '<label class="label bg-primary">正常</label>',
            'hidden' => '<label class="label bg-black">禁用</label>'
        ];

        return $status[$value];
    }
}
